Concatenate two Pascal strings together. Error checking is done to ensure that the limit of 255 chars is not exceeded. If it is exceeded, the second string is truncated at a byte boundary that makes sense in the current script.
Caller must allocate storage for pstr. No error checking is done for strings longer than 255 chars. Simply grabs the text from the theText field of ODIText. CAUTION: This function is only intended to convert the bytes of the IText to a pascal string. These bytes are not valid without the accompanying script code and language code.
Caller must dispose storage for intlText when done with it. The ODIText is created with theScriptCode = smScriptRoman and theLangCode = langEnglish. Storage for the ODIText is allocated only if intlText == NULL; otherwise it's assumed that *intlText is a valid ptr to an ODIText big enough to hold the string. CAUTION: This function is only intended to convert the bytes of the Pascal string to the bytes in an ODIText. These bytes are not valid
without first setting the appropriate accompanying script code and language code in the ODIText as well.
ODHandle PStrToText(ConstStr255Param pstr);
Allocates an ODHandle and copies the bytes of the Pascal string into it. Caller must dispose of the returned ODHandle.
Converts the contents of the ODhandle into a Pascal string. The caller must allocate storage for the destination. If the handle is greater than 255 bytes, only the first 255 bytes are copied.
Using the given script code, truncates a pascal string so that it occupies the given number of bytes (plus the length byte) or one less. The one less case occurs when simple truncation would clip off the second byte of a double-byte character. Returns the number of bytes the truncated string is long, i.e. numBytes or numBytes - 1.